export default {
  methods: {
    /** 
     * @param {*} row 当前对象
     * @param {*} col 当前单元格对象
     * @param {*} value 当前单元格的值
     * @returns 
     */
    formatTime(row,col,value) {  
      let date = new Date(value);
      let Y = date.getFullYear();
      let M = date.getMonth() + 1;
      let D = date.getDate();
      let h = date.getHours();
      let m = date.getMinutes();
      let s = date.getSeconds();
      M = M < 10 ? "0" + M : M;
      D = D < 10 ? "0" + D : D;
      h = h < 10 ? "0" + h : h;
      m = m < 10 ? "0" + m : m;
      s = s < 10 ? "0" + s : s;
      return `${Y}-${M}-${D} ${h}:${m}:${s}`;
    },
  },
};
